home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Info / TeachU14 / SAMS / Code / Day09 / scratch.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-08  |  834 b   |  24 lines

  1. //---------------------------------------------------------------------------
  2. #include <vcl.h>
  3. #pragma hdrstop
  4. USERES("Scratch.res");
  5. USEFORM("SPAbout.cpp", AboutBox);
  6. USEFORM("SPMain.cpp", ScratchPad);
  7. //---------------------------------------------------------------------------
  8. WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
  9. {
  10.         try
  11.         {
  12.                  Application->Initialize();
  13.                  Application->CreateForm(__classid(TScratchPad), &ScratchPad);
  14.                  Application->CreateForm(__classid(TAboutBox), &AboutBox);
  15.                  Application->Run();
  16.         }
  17.         catch (Exception &exception)
  18.         {
  19.                  Application->ShowException(&exception);
  20.         }
  21.         return 0;
  22. }
  23. //---------------------------------------------------------------------------
  24.